package com.ruoyi.workbench.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.workbench.domain.WorkSpecializedClassManageUser;
import com.ruoyi.workbench.mapper.WorkSpecializedClassManageUserMapper;
import com.ruoyi.workbench.service.IWorkSpecializedClassManageUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 专班关联人员Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-02
 */
@Service
public class WorkSpecializedClassManageUserServiceImpl implements IWorkSpecializedClassManageUserService
{
    @Autowired
    private WorkSpecializedClassManageUserMapper workSpecializedClassManageUserMapper;

    /**
     * 查询专班关联人员
     * 
     * @param sid 专班关联人员主键
     * @return 专班关联人员
     */
    @Override
    public WorkSpecializedClassManageUser selectWorkSpecializedClassManageUserBySid(Integer sid)
    {
        return workSpecializedClassManageUserMapper.selectWorkSpecializedClassManageUserBySid(sid);
    }

    /**
     * 查询专班关联人员列表
     * 
     * @param workSpecializedClassManageUser 专班关联人员
     * @return 专班关联人员
     */
    @Override
    public List<WorkSpecializedClassManageUser> selectWorkSpecializedClassManageUserList(WorkSpecializedClassManageUser workSpecializedClassManageUser)
    {
        return workSpecializedClassManageUserMapper.selectWorkSpecializedClassManageUserList(workSpecializedClassManageUser);
    }

    /**
     * 新增专班关联人员
     * 
     * @param workSpecializedClassManageUser 专班关联人员
     * @return 结果
     */
    @Override
    public int insertWorkSpecializedClassManageUser(WorkSpecializedClassManageUser workSpecializedClassManageUser)
    {
        workSpecializedClassManageUser.setCreateTime(DateUtils.getNowDate());
        return workSpecializedClassManageUserMapper.insertWorkSpecializedClassManageUser(workSpecializedClassManageUser);
    }

    /**
     * 修改专班关联人员
     * 
     * @param workSpecializedClassManageUser 专班关联人员
     * @return 结果
     */
    @Override
    public int updateWorkSpecializedClassManageUser(WorkSpecializedClassManageUser workSpecializedClassManageUser)
    {
        workSpecializedClassManageUser.setUpdateTime(DateUtils.getNowDate());
        return workSpecializedClassManageUserMapper.updateWorkSpecializedClassManageUser(workSpecializedClassManageUser);
    }

    /**
     * 批量删除专班关联人员
     * 
     * @param sids 需要删除的专班关联人员主键
     * @return 结果
     */
    @Override
    public int deleteWorkSpecializedClassManageUserBySids(Integer[] sids)
    {
        return workSpecializedClassManageUserMapper.deleteWorkSpecializedClassManageUserBySids(sids);
    }

    /**
     * 删除专班关联人员信息
     * 
     * @param sid 专班关联人员主键
     * @return 结果
     */
    @Override
    public int deleteWorkSpecializedClassManageUserBySid(Integer sid)
    {
        return workSpecializedClassManageUserMapper.deleteWorkSpecializedClassManageUserBySid(sid);
    }
}
